package org.dtrd.modules.shop.entity.request;

import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 金蝶收货地址
 *
 * @author xiao
 * @date 2022/5/18 10:10 AM
 */
@Data
@ApiModel(value = "商品更新")
public class ProductPushRequest {

    @NotNull
    @ApiModelProperty(value = "患者id", required = true)
    private Integer patientId;

    @NotNull
    @ApiModelProperty(value = "医生id", required = true)
    private Integer doctorId;

    @NotNull
    @ApiModelProperty(value = "商品", required = true)
    private JSONArray products;

    @NotNull
    @ApiModelProperty(value = "结算价格", required = true)
    private String usePrice;


    public static class ProductList {

        @ApiModelProperty(value = "商品id", required = true)
        private Integer id;

        @ApiModelProperty(value = "商品数量", required = true)
        private Integer num;
    }

}
